package demo1;

import java.util.Comparator;

/**
 * @Author liangzai
 * @Description:
 */
public class NameComparator implements Comparator<Student> {
    public int compare(Student o1,Student o2){
        return o1.name.compareTo(o2.name);
    }
}
